import pytest,logging,yagmail
def log():
    logging.basicConfig(level=logging.DEBUG,
                        format='%(filename)s %(levelname)s %(asctime)s %(messige)s %(lineno)s',
                        filename='aaa.log',
                        filemode='w')
def send():
    mail=yagmail.SMTP(user='3034738910@qq.com',password='aytttpqxjbbrddjh',host='smtp.qq.com')
    mail.send(to='3034738910@qq.com',subject='测试报告',contents='今日报告，请查收')